"""
    读取项目配置文件，配置项目
"""
import os, configparser


def project_path():
    path = os.path.split(os.path.realpath(__file__))[0].split('C')[0]
    return path

def config_url():
    config = configparser.ConfigParser()
    config.read(project_path() + "config.ini")
    return config.get('testUrl', 'url')

if __name__ == '__main__':
    print("project_path=", project_path())
    print("被测系统的url=", config_url())